package lights;

import hulppakket.Color3f;
import hulppakket.Intersection;
import hulppakket.Vector3f;

public class DirectionalLight extends lights.Light {

	public Vector3f direction;

	public DirectionalLight(Vector3f direction, float intensity, Color3f color,
			String name) {
		super(color, intensity, name);
		this.direction = direction;
	}

	@Override
	public Vector3f getVectorPointingToLight(Intersection intersection) {
		return this.direction.scale(-1);
	}
}
